You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
import "../globals.css" ;
import React from "react" ;
import { MainNav } from "../../components/MainNav" ;
import { Footer } from "../../components/Footer" ;
import { getMainNav } from "../../lib/data" ;
export const dynamicParams = true ;
export async function generateStaticParams() {
return [ { locale : "zh-CN" } , { locale : "en" } ] ;
}
export async function generateMetadata ( { params } : { params : { locale : string } } ) {
const locale = params . locale ;
const isEn = locale === "en" ;
return {
title : isEn
? "Huilong Xingda | Precision Imaging — Leading a New Era of Vision"
: "汇龙兴达 | 臻影智造 · 中国领先的智能影像系统提供商" ,
description : isEn
? "Founded in November 2014, Shenzhen Huilong Xingda Technology Co., Ltd. is a leading intelligent imaging system provider in China. We deliver end-to-end on-device intelligent imaging solutions."
: "深圳市汇龙兴达科技有限公司(成立2014)提供芯片级适配、ISP调试与算法优化的端到端智能影像解决方案,服务手机、车载、医疗与可穿戴等行业。" ,
} ;
}
export default function RootLocaleLayout ( { children , params } : { children : React.ReactNode ; params : { locale : string } } ) {
const mainnav = getMainNav ( params . locale ) ;
return (
< html lang = { params . locale === "en" ? "en" : "zh-CN" } >
< body className = "bg-huilong-bg text-[#f3f2f0]" >
< MainNav items = { mainnav } basePath = { ` / ${ params . locale } ` } locale = { params . locale } / >
< main className = "pt-16 md:pt-24" > { children } < / main >
< Footer locale = { params . locale } / >
< / body >
< / html >
) ;
}